Einhugur RawBitmap Objo plugin.

Einhugur.RawBitmap.Crop Method

Crops the image, returning a new RawBitmap with the result or nothing if no parts of the image were within the Crop parameters.

Crop(
   x as Integer,
   y as Integer,
   width as Integer,
   height as Integer) as Einhugur.RawBitmap

Parameters

x
The x-coordinate of the top-left corner of the crop rectangle.
y
The y-coordinate of the top-left corner of the crop rectangle.
width
The width of the crop rectangle.
height
The height of the crop rectangle.

Returns

Einhugur.RawBitmap
A new RawBitmap representing the cropped area, or nothing if cropping fails.

Remarks

This function can return nothing if no parts of the crop range were within the image.

This function can return lesser width or lesser height than requested, if parts of the requested area were outside of the source image.

See Also

Einhugur.RawBitmap Class